package com.eudon.design_pattern.structural.proxy.dynamic_proxy;

import com.eudon.design_pattern.structural.proxy.IUserController;
import com.eudon.design_pattern.structural.proxy.Request;
import com.eudon.design_pattern.structural.proxy.UserController;

import java.util.List;

/**
 * @author eudon
 * @description 使用示例
 * @date 2025/9/1
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class Use {
    public static void main(String[] args) {
        LogProxy logProxy = new LogProxy();
        IUserController proxy = (IUserController) logProxy.createProxy(new UserController());
        List<String> orders = proxy.queryOrder(1L);
        System.out.println(orders);
    }


}
